package cn.rongdao.jrkabao.model.takephoto;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.takephoto.IdentifySwitchBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2018/1/22
 */

public class IdentifySwitchModel extends BaseKaMaoModel {

    public static IdentifySwitchModel getInstance() {
        return getPresent(IdentifySwitchModel.class);
    }

    public void execute(Observer<IdentifySwitchBean> observer) {
        Observable<IdentifySwitchBean> observable = mServletApi.getIdentitySwitch(mParams).map(new HttpFunction<IdentifySwitchBean>());
        toSubscribe(observable, observer);
    }
}
